<template>

    <div class="employee_list_container">
        <el-breadcrumb separator="/">
            <el-breadcrumb-item>系统设置</el-breadcrumb-item>
            <el-breadcrumb-item>员工管理</el-breadcrumb-item>
            <el-breadcrumb-item>添加员工</el-breadcrumb-item>
        </el-breadcrumb>

        <el-card class="employee_list_card">

            <!-- title -->
            <el-row class="title">
                <el-col>添加员工</el-col>
            </el-row>

            <!-- 主体内容 -->
            <div class="employee_list_content">
                <el-form class="employee_list_form" :model="ruleForm" :rules="ruleFormRules" ref="ruleForm" label-width="100px">
                    <el-form-item prop="account_number" label="账号：">
                        <el-input v-model="ruleForm.account_number" placeholder="请输入账号"></el-input>
                    </el-form-item>

                    <el-form-item v-if="is_edit" prop="paddword" label="密码：">
                        <el-input v-model="ruleForm.paddword" placeholder="请输入密码"></el-input>
                    </el-form-item>

                    <el-form-item prop="name" label="姓名：">
                        <el-input v-model="ruleForm.name" placeholder="请输入姓名"></el-input>
                    </el-form-item>

                    <el-form-item prop="phone_number" label="手机号码：">
                        <el-input v-model="ruleForm.phone_number" placeholder="请输入手机号码"></el-input>
                    </el-form-item>

                    <el-form-item prop="authority" label="权限：">
                        <el-radio v-model="ruleForm.authority" label="1">超级级管理员</el-radio>
                        <el-radio v-model="ruleForm.authority" label="2">网站管理员</el-radio>
                    </el-form-item>

                    <el-form-item>
                        <el-button type="primary" @click="save('ruleForm')">保存</el-button>
                        <el-button @click="back()">返回</el-button>
                    </el-form-item>
                </el-form>
            </div>

        </el-card>
    </div>

</template>

<script src='../../../static/js/employee/add_employee.js'></script>

<style scoped>
@import "../../../static/css/employee/add_employee.css";
</style>


